<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">
        <div><?php include "../public_flow/flow_show_info.php";?></div>
        <div class="tongbox tongbox5">
            <div class="tuo"><div class="tit">项目名称</div><div class="con" id="tong_enginname"></div></div>
            <div class="tuo"><div class="tit">产值月报单号</div><div class="con" id="tong_number"></div></div>
            <div class="tuo"><div class="tit">产值月份</div><div class="con" id="tong_month"></div></div>
            <div class="tuo"><div class="tit">本月产值金额(元)</div><div class="con" id="tong_money"></div></div>
            <div class="tuo"><div class="tit">申请人</div><div class="con" id="tong_flowuser"></div></div>
        </div>
        <div class="table-box tablenes">
            <div class="title">项目信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">项目名称</td><td class="tv colorlan" id="enginid_name" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div class="table-box tablenes">
            <div class="title">产值月报信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">产值月报单号</td><td id="number" class="tv"></td><td class="tt">产值月份</td><td id="month" class="tv"></td></tr>
                <tr><td class="tt">月报主题</td><td id="title" class="tv" colspan="3"></td></tr>
                <tr><td class="tt">本月产值金额(元)</td><td id="money" class="tv" colspan="3"></td></tr>
                <tr><td class="tt">月报内容</td><td id="yuenei" colspan="3" class="tv"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>

        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>

    <div class="showrrboxtext">
        <div class="table-box tablenes">
            <div class="title">产值月报</div>
            <div class="tuo"><div class="tit">项目产值填报合计(元)</div><div class="con" id="right_chanmoney">0</div></div>
        </div>
    </div>
    <div><?php include '../public/shrrbox.php'?></div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_engin_chan_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                var engininfo = res.data.engininfo;
                $("#flowdingname").text(data.title);

                if(engininfo){
                    $("#tong_enginname").text(engininfo.name);
                }
                $("#tong_number").text(data.number);
                $("#tong_month").text(data.month);
                $("#tong_money").text(parseFormatNum(data.money));
                $("#tong_flowuser").text(data.flowuser);

                if(engininfo){
                    $("#right_chanmoney").text(parseFormatNum(engininfo.chanmoney)).addClass('colorlan').click(function () {
                        openNavPage('查看产值月报信息','engin_chan/index.php?status=1&enginid='+engininfo.id);
                    });
                }






                if(engininfo){
                    $("#enginid_name").text(engininfo.name).click(function () {
                        openPage('../engin/show.php?id='+engininfo.id);
                    });
                }

                $("#number").text(data.number);
                $("#title").text(data.title);
                $("#month").text(data.month);
                $("#money").text(showChineseNumber(data.money));
                $("#yuenei").text(data.yuenei);
                $("#explain").text(data.explain);


                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('engin_chan', param_id);
    });



</script>
</body>
</html>




